package com.zyf.chapter01.principle.practice;

import java.util.List;
import java.util.Map;

/**
 * 原始数据存储
 * 满足开闭原则
 * @author yifeng
 */
public interface MetricsStorage {
    void saveRequestInfo(RequestInfo requestInfo);

    List<RequestInfo>  getRequestInfos(String apiName, long startTimeInMillis, long endTimeInMillis);

    Map<String, List<RequestInfo>> getRequestInfos(long startTimeInMillis, long endTimeInMillis);
}
